from utils.projectUtil import  Project
def create_project():
    project_name=input("请输入项目名称")
    p=Project(project_name)
    p.main()

def clean_log():
    pass

def bak_db():
    pass

def run_test():
    pass

func_dict={
    "1":create_project,
    "2":clean_log,
    "3":bak_db,
    "4":run_test
}

if __name__ == '__main__':
    choice=input("请输入需要执行的操作：\n"
                 "1，创建项目\n"
                 "2、清除日志\n"
                 "3、备份数据库\n"
                 "4、执行测试\n")
    if choice in func_dict:
        func_dict.get(choice)()
    else:
        print("输入错误")